package com.stx.day0917;

/**
 * packageName com.stx.day0917
 *
 * @author YangYi
 * @className PhoneDemo
 * @date 2025/9/17
 * @description TODO
 */
public class PhoneDemo {
    public static void main(String[] args) {
//        Phone phone = new Phone();
//        phone.call();
//        phone.msg();

        HuaWeiPhone huaWeiPhone = new HuaWeiPhone();
        huaWeiPhone.setName("华为");
        huaWeiPhone.call();
        huaWeiPhone.msg();
        huaWeiPhone.take();
        huaWeiPhone.show();

//        XiaoMiPhone xiaoMiPhone = new XiaoMiPhone();
//        xiaoMiPhone.setName("小米");
//        xiaoMiPhone.call();
//        xiaoMiPhone.msg();
//        xiaoMiPhone.show();
//        xiaoMiPhone.music();

//
//        VivoPhone vivoPhone = new VivoPhone();
//        vivoPhone.call();
//        vivoPhone.msg();
//        vivoPhone.setName("VIVO");
//        vivoPhone.show();
    }
}
